/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../styles/variables.less';

.ant-tree {
  .ant-tree-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ant-tree-node-content-wrapper {
    display: flex;
    align-items: center;

    .ant-tree-iconEle {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .ant-tree-treenode {
    padding: 4px 0;
  }

  &.ant-tree-directory {
    .ant-tree-treenode-selected {
      &:hover::before,
      &::before {
        background: #f4f0fd;
        border-left: 2px solid @primary-color;
      }
    }

    .ant-tree-treenode::before {
      height: 100%;
    }
  }

  .ant-tree-node-selected {
    .ant-tree-title {
      color: @primary-color;
      font-weight: 700;
    }
  }

  .ant-tree-title {
    overflow-x: hidden;
    text-overflow: ellipsis;
  }

  .ant-tree-switcher-icon {
    width: 12px;
    height: 12px;
    color: @grey-4;
  }
}

.execution-node-container {
  overflow-x: auto;
  white-space: nowrap;
  overflow-y: hidden;

  &::-webkit-scrollbar {
    display: none;
  }
}
